package com.dreamfire.display.display2D.core
{
	
	import flash.display.Bitmap;
	import flash.display.BitmapData;
	import flash.geom.Point;
	import flash.geom.Vector3D;
	
	public class Sprite2D extends Bitmap implements IObject2D
	{
		
		protected var _position:Vector3D = new Vector3D();
		protected var _size:uint;
		protected var _depth:Number = 0;
		
		public function Sprite2D(size:uint = 32, bitmapData:BitmapData=null, pixelSnapping:String="auto", smoothing:Boolean=false)
		{
			this.size = size;
			super(bitmapData, pixelSnapping, smoothing);
		}
		
		public function updatePosition():void
		{
			//更新坐标
		}
		
		public function get position():Vector3D
		{
			return _position;
		}
		
		public function set position(value:Vector3D):void
		{
			_position = value;
			updatePosition();
		}
		
		public function get size():uint
		{
			return _size;
		}
		
		public function set size(value:uint):void
		{
			_size = value;
			updatePosition();
		}
		
		public function get depth():Number
		{
			return _depth;
		}
	}
}